x86/compat: test both PV and PVH guests for compat mode
authorBoris Ostrovsky <boris.ostrovsky@oracle.com>
Wed, 9 Sep 2015 15:09:34 +0000 (17:09 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 9 Sep 2015 15:09:34 +0000 (17:09 +0200)
commite264718e917708dd8d5080711e7cb97de91f00ae
treece3a49675adc2dd9fbd9b526ba1e8262c2ec94e1
parent476cf36ac0de41bd5070f902c430d5ce90c7f590
x86/compat: test both PV and PVH guests for compat mode

Add is_pvh_32bit_domain() macro and use it alongside is_pv_32bit_domain() where
necessary.

Since PVH guests cannot change execution mode, has_32bit_shinfo is a good
indicator of whether the guest is PVH and 32-bit.

Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
xen/arch/x86/domain.c
xen/arch/x86/domctl.c
xen/include/asm-x86/domain.h